package org.com;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.ResponseBody;

import io.swagger.annotations.ApiOperation;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.HashMap;
import java.util.Map;

import org.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@Controller  
@EnableAutoConfiguration
@MapperScan("org.com.mapper")
//@Configuration
@EnableSwagger2
public class App 
{
	
	@ApiOperation("获取首页")
    @RequestMapping(value="/",method=RequestMethod.GET)  
    @ResponseBody  
    Map<String, Object> home() {
		HashMap<String, Object> map=new HashMap<String,Object>(){{
			put("name","cike");
		}};
		return map;
    }
  

	public static void main(String[] args) {
		SpringApplication.run(App.class, args);
	}
	
	
}
